<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 请问以下JS代码会做什么样的输出（把输出结果写在调用函数的后面，不可以再vscode当中运行）
      let a = "w";
      let obj = {
        a: "o",
        print: function () {
          console.log(this.a);
        },
      };
      let p = obj.print;
      obj.print();
      p(); // undefined
    </script>
  </body>
</html>
